//
//  DrawManageViewController.m
//  XKStudyDemo
//
//  Created by xukai on 2017/11/29.
//  Copyright © 2017年 xukai. All rights reserved.
//

#import "DrawManageViewController.h"

@interface DrawManageViewController ()

@end

@implementation DrawManageViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    NSDictionary *dic = @{@"title" : @"UIBezierPath", @"className" : @"BezierPathViewController"};
    NSDictionary *dic1 = @{@"title" : @"引导页面", @"className" : @"GuieViewController"};
    
    self.dataSoureArray = @[dic,dic1];
}


-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSDictionary *dic = self.dataSoureArray[indexPath.row];
    UIViewController *vc =[[NSClassFromString(dic[@"className"]) alloc] init];
    vc.hidesBottomBarWhenPushed =YES;
    [self.navigationController pushViewController:vc animated:YES];
}


@end
